set -x 
function check()
{
 soft_version="2.2"
	if [[ $soft_version =~ `rpm -qa | grep gpertfools` ]];then
		echo "RETURN SUCCESS"
		return
	else
		echo "RETURN FAILED"
	fi
	 
}
function main()
{
	ret=$(check)
	if[[ $ret == *'RETURN SUCCESS']];then
		echo "test scripts success"
	else
		echo "test scripts failed"
	fi
}
main